package com.maxmlr.music.common.enums;


public enum ErrorCode implements IErrorCode {
    SUCCESS(200, "调用成功！"),
    PARAMS_VALID_ERROR(2001, "参数校验数组不能为空"),
    PARAMS_NULL_ERROR(2002, "参数名：%s,不能为空"),
    UPLOAD_ERROR(3001, "上传失败！"),
    ERROR(500, "系统异常！"),

    ;

    private int code;
    private String msg;

    ErrorCode(final int code, final String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
